package com.aaa.controller;

import com.aaa.entity.Function;
import com.aaa.service.FunctionService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (Function)表控制层
 *
 * @author makejava
 * @since 2022-01-12 13:27:05
 */
@RestController
@RequestMapping("function")
public class FunctionController {
    /**
     * 服务对象
     */
    @Resource
    private FunctionService functionService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public Function selectOne(Integer id) {
        return this.functionService.queryById(id);
    }

}